package com.ccc.demoboot.controller;

import com.ccc.demoboot.common.R;
import com.ccc.demoboot.pojo.Permis;
import com.ccc.demoboot.service.PermisService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/permis")
public class PermisController extends BaseController<PermisService, Permis> {

    @PostMapping("/addpermis")
    public R addpermis(@RequestBody Permis permis){
        System.out.println(permis.getPermisname()+permis.getHref());
        return new R();
    }

}
